﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJSHWebApi.DBModel
{
    [Table("Role_Entity")]
    public class Role_Entity:BaseDbmodel
    {
        [Key]
        public int id { get; set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        public int rol1ID { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string rol1Name { get; set; }
        /// <summary>
        /// AGV参数管理
        /// </summary>
        public bool AGVManagement { get; set; }
        /// <summary>
        /// 区域管理
        /// </summary>
        public bool AreaManagement { get; set; }
        /// <summary>
        /// 自动门管理
        /// </summary>
        public bool AutomaticDoorManagement { get; set; }
        /// <summary>
        /// 缓存架管理
        /// </summary>
        public bool CacheManagement { get; set; }
        /// <summary>
        /// 库位管理
        /// </summary>
        public bool LocationManagement { get; set; }
        /// <summary>
        /// 充电站管理
        /// </summary>
        public bool ChargeStationManagement { get; set; }
        /// <summary>
        /// 休息区管理
        /// </summary>
        public bool RestAreaStationManagement { get; set; }
        /// <summary>
        /// 历史任务管理
        /// </summary>
        public bool HistoricalTaskManagement { get; set; }
        /// <summary>
        /// 上层任务管理
        /// </summary>
        public bool InfoManagement { get; set; }
        /// <summary>
        /// 电梯管理
        /// </summary>
        public bool LiftManagement { get; set; }
        /// <summary>
        /// 地图类型管理
        /// </summary>
        public bool MapManagement { get; set; }
        /// <summary>
        /// 物料类型管理
        /// </summary>
        public bool MaterialTypeManagement { get; set; }
        /// <summary>
        /// 队列管理
        /// </summary>
        public bool QueueManagement { get; set; }
        /// <summary>
        /// 权限管理
        /// </summary>
        public bool RoleManagement { get; set; }
        /// <summary>
        /// 站点管理
        /// </summary>
        public bool StationManagement { get; set; }
        /// 设置管理
        /// </summary>
        public bool SettingManagement { get; set; }
        /// <summary>
        /// 任务管理
        /// </summary>
        public bool TaskManagement { get; set; }
        /// <summary>
        /// 任务类型管理
        /// </summary>
        public bool TaskTypeManagement { get; set; }
        /// <summary>
        /// 用户管理
        /// </summary>
        public bool UserManagement { get; set; }
        /// <summary>
        /// 地图资源管理
        /// </summary>
        public bool MapResourceManagement { get; set; }

        public bool RawPda { get; set; }

        public bool OvenPda { get; set; }
        public bool SlittingPdaUp { get; set; }
        public bool SlittingPdaDown { get; set; }
        public bool Finished { get; set; }

        public void AllTrue()
        {
         AGVManagement =true;
     
         AreaManagement =true;
      
         AutomaticDoorManagement =true;
       
         CacheManagement =true;
    
         LocationManagement =true;
     
         ChargeStationManagement =true;
      
         RestAreaStationManagement =true;
     
         HistoricalTaskManagement =true;
   
         InfoManagement =true;
        
         LiftManagement =true;
      
         MapManagement =true;
        
         MaterialTypeManagement =true;
      
         QueueManagement =true;
      
         RoleManagement =true;
     
         StationManagement =true;
    
         SettingManagement =true;
     
         TaskManagement =true;
     
         TaskTypeManagement =true;
    
         UserManagement =true;
    
         MapResourceManagement =true;
    }

    }
   
}
